<?php

return [
    [
        'label' => '用户管理',
        'url' => '#',
        'icon' => 'fa fa-gavel',
        'items' => [
            [
                'label' => '用户列表',
                'url' => ['/user/default/index'],
                'match' => '@^/user/default.*@',
                'auth'=> [
                    'route:user/default/index',
                    'route:user/default/create',
                    'route:user/default/update',
                    'route:user/default/delete',
                    'route:user/default/batch-delete',
                ]
            ],
            [
                'label' => '用户组列表',
                'url' => ['/user/group/index'],
                'auth'=> [
                    'route:user/group/index',
                    'route:user/group/save',
                    'route:user/group/manage',
                    'route:user/group/remove',
                    'route:user/group/move',
                ]
            ],
            [
                'label' => '权限列表',
                'url' => ['/user/permission/index'],
                'auth' => [
                    'route:user/permission/index',
                    'route:user/permission/create',
                    'route:user/permission/update',
                    'route:user/permission/delete',
                    'route:user/permission/batch-delete',
                ]
            ],
            [
                'label' => '角色列表',
                'url' => ['/user/role/index'],
                'auth' => [
                    'route:user/role/index',
                    'route:user/role/create',
                    'route:user/role/update',
                    'route:user/role/delete',
                    'route:user/role/batch-delete',
                ]
            ],
            [
                'label' => '新增角色',
                'url' => ['/user/role/create'],
                'visible' => false,
                'auth' => [
                    'route:user/role/create',
                ]
            ],
            [
                'label' => '规则列表',
                'url' => ['/user/rule/index'],
                'auth' =>[
                    'route:user/rule/index',
                    'route:user/rule/create',
                    'route:user/rule/delete',
                    'route:user/rule/batch-delete',
                ]
            ],
            [
                'label' => '新增规则',
                'url' => ['/user/rule/create'],
                'visible' => false,
                'auth' => [
                    'route:user/rule/create',
                ]
            ],
        ]
    ],
];
